package com.edgar.designpattern.visitor;

public class UnixModemConfigurator implements ModemVisitor {

    @Override
    public void visit(HayesModem modem) {
        modem.configurationString = "&s1=4$D=3";
    }

    @Override
    public void visit(ZoomModem modem) {
        modem.configrationValue = 42;
    }

    @Override
    public void visit(ErineModem modem) {
        modem.configurationPattern = "C is too slow";
    }

}
